package cn.rongdao.jrkabao.ui.main.mainfragment.adapter;

import android.content.Context;
import android.support.annotation.NonNull;
import android.view.ViewGroup;

import com.mifengkong.frtools.ui.adapter.recyclerview.FRBaseRecyclerAdapter;
import com.mifengkong.frtools.inputmethod.FRView;

import cn.rongdao.jrkabao.R;
import cn.rongdao.jrkabao.bean.main.personal.PersonItemInfoBean;

/**
 * Created by jack on 17/5/10
 */

public class PersonalAdapter extends FRBaseRecyclerAdapter<PersonItemInfoBean, PersonalViewHolder> {

    public PersonalAdapter(Context context, OnItemClickListener<PersonalViewHolder> listener) {
        super(context, listener);
    }

    @NonNull
    @Override
    public PersonalViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
        return new PersonalViewHolder(FRView.inflateLayout(getContext(), R.layout.item_person, parent, false));
    }
}